﻿<%@ Page Language="C#" MasterPageFile="~/YUIAspNet.Master" AutoEventWireup="true" CodeBehind="ButtonTypeRadio.aspx.cs" Inherits="YUIAspNetDemo.Button.ButtonTypeRadio" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>YUIAsp.Net Controls : LiveDemo : Button : Radio Button</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Radio button</h1>
    
    <p>You can display a list of radio buttons using the RadioButtonList control. It uses Buttons, but groups them so that you can select only one.</p>
    
    <p>
        <asp:Panel ID="pnl" runat="server" GroupingText="What's for dinner?">
            <yui:RadioButtonList ID="rblFood" runat="server">
                <Items>
                    <yui:RadioButtonItem ID="btnPizza" runat="server" Text="Pizza" Value="pizza"></yui:RadioButtonItem>
                    <yui:RadioButtonItem ID="btnBurgers" Checked="true" runat="server" Text="Burgers" Value="Burgers"></yui:RadioButtonItem>
                    <yui:RadioButtonItem ID="btnSalad" runat="server" Text="Salad" Value="Salad"></yui:RadioButtonItem>
                    <yui:RadioButtonItem ID="btnNothing" runat="server" Text="Nothing" Value="Nothing"></yui:RadioButtonItem>
                </Items>
            </yui:RadioButtonList>
        </asp:Panel>
    </p>
    
    <p>
        <asp:Panel ID="Panel1" runat="server" GroupingText="Any Drink?">
            <yui:RadioButtonList ID="rblDrink" runat="server">
                <Items>
                    <yui:RadioButtonItem ID="btnBeer" runat="server" Text="Beer" Value="Beer"></yui:RadioButtonItem>
                    <yui:RadioButtonItem ID="btnCola" Checked="true" runat="server" Text="Cola" Value="Cola"></yui:RadioButtonItem>
                    <yui:RadioButtonItem ID="btnWater" runat="server" Text="Water is just fine" Value="water"></yui:RadioButtonItem>
                </Items>
            </yui:RadioButtonList>
        </asp:Panel>
    </p>
    
    <p>
        <yui:Button ID="btn" runat="server" Text="Get checked state" /><br />
        <asp:Label ID="lblState" runat="server"></asp:Label>
    </p>
</asp:Content>
